<%@page contentType="text/html"%>
<%@page pageEncoding="utf-8"%>

<html>
    <head><title>登出</title></head>
    <body>
    <table width="750" border="0" align="center">
  <tr>
    <td width="30" rowspan="4"><jsp:include page="../frameset/left.jsp" flush="true" ></jsp:include></td>
    <td colspan="2"><jsp:include page="../frameset/top.jsp" flush="true" ></jsp:include></td>
    <td width="40" rowspan="4"><jsp:include page="../frameset/right.jsp" flush="true" ></jsp:include></td>
  </tr>
  <tr>
    <td rowspan="2"></td>
    <td height="32"></td>
  </tr>
  <tr>
    <td>
    <%  
        if(session.getAttribute("access")=="y"  ) {
            session.invalidate() ;
            out.println("您已成功登出　!! <br>") ; 
            out.println("<a href='../index.jsp'> 登入</a>") ; 
        }else{            
            response.sendRedirect("../index.jsp") ; 
        }
     %>

    </td>
  </tr>
  <tr>
    <td colspan="2"></td>
  </tr>
</table>
    
    </body>
</html>